import { axiosInstance } from './config'

export const getBannerRequest = 
    () => axiosInstance.get('/banner')

// rank 模块  
export const getRankListRequest = 
    () => axiosInstance.get('/toplist/detail')

export const getSingerRequest = 
    () => axiosInstance.get('/top/artists')

export const getRcommendListRequest = 
    () => axiosInstance.get('personalized')

// 热搜
export const getHotKeywordsRequest = 
    () => axiosInstance.get('/search/hot')

// 
export const getSuggestListRequest = 
    query => axiosInstance.get(`/search/suggest?keywords=${query}`)

export const getResultSongsListRequest = 
    query => axiosInstance.get(`/search?keywords=${query}`)

export const getSingerInfoRequest = id => {
    return axiosInstance.get(`/artists?id=${id}`);
    };
    